class Die():
    def __init__(self,sides = 6):
        self.sides = sides
    def roll_die(self):
        from random import randint
        x = randint(1, self.sides)
        print(x)
a = Die()
a.roll_die()

a = Die(10)
a.roll_die()

a = Die(20)
a.roll_die()